import {ClientManager} from "./client";
import {events} from "./types";

export interface RecvMessage {
    id: string,
    nickname: string,
    conversationId: string,//收到的消息
    conversationType: number,
    senderId: string,
    sender?: any,
    conversation?: any,
    sendTime: number,
    messageType: number,
    message: string,
}

export function WrapperClients(manager: ClientManager) {
    const {client, server} = manager;
    let timer: number = 0;
    let isLogin = false;

    /**
     * 主动注册到系统
     */
    client.on("wk.register", async (res) => {

    })
}
